# a={}
# b=dict({})
#
# print(type(a))
# print(type(b))

a={
    "id" : 1 ,
    "name" : "zhangSan"
}

print("id" in a)
print("name" in a)
# print("zhangsan" in a)

print("id" not in a)
print("name" not in a)
# print("zhangsan" not in a)

print(a["id"])
print(a["name"])
# print(a["zhangsan"])


a["id"] ="Id"
a["name"] = "lisi"
# key存在就是修改，不存在就是新增
a["age"] = 10

print(a)
